package cn.tedu.tmall.admin.mall.dao.repository;

import cn.tedu.tmall.admin.mall.pojo.po.GoodsDetailPO;
import cn.tedu.tmall.admin.mall.pojo.po.GoodsPO;

import java.util.List;

public interface IGoodsRepository {
    Integer countGoodsByTitle(String title);

    Integer saveGoods(GoodsPO goodsPO);

    Integer saveGoodsDetail(GoodsDetailPO goodsDetailPO);

    GoodsPO basic(Long goodsId);

    GoodsDetailPO detail(Long goodsId);

    List<GoodsPO> listGoods(Long categoryId, Integer pageNum, Integer pageSize);
}
